#include "parser.h"
#include <windows.h>
/*
note:
-parser ngulang kata tanpa disuruh??
-butuh neken enter dua kali
-0 untuk rumah, 1 untuk lahan, 2 untuk toko
-vector di player???
-semua hal yang berhubungan dengan L.OL.,OL.,vector di player tolong cek lagi apakah melebihi
	xmax, ymax peta??(6,6 untuk house dan shop; 13,13 untuk field)
-face gak ngeload vector lagi??
*/
int main() {
	system("cls");
cout <<"#################################################################################" << endl;
cout <<"#										#" << endl;
cout <<"#	  _____               _     _____                              		#" << endl;
cout <<"#	 |  ___|__   ___   __| |   |  ___|_ _ _ __ _ __ ___   ___ _ __ 		#" << endl;
cout <<"#	 | |_ / _ \\ / _ \\ / _` |   | |_ / _` | '__| '_ ` _ \\ / _ \\ '__|		#" << endl;
cout <<"#	 |  _| (_) | (_) | (_| |   |  _| (_| | |  | | | | | |  __/ |   		#" << endl;
cout <<"#	 |_|  \\___/ \\___/ \\__,_|   |_|  \\__,_|_|  |_| |_| |_|\\___|_|   		#" << endl;
cout <<"#                                                         			#" << endl;
cout <<"#										#" << endl;
cout <<"#################################################################################" << endl;
cout << "                                                                                          _. " << endl;
cout << "                                                                                       (^` ) " << endl;
cout << "                                                                                   _. (_,.-) " << endl;
cout << "                                                                                (^` ) " << endl;
cout << "                                                                    ,(``).._   (_,.-) " << endl;
cout << "                                                                   (  _    ..)  " << endl;
cout << "                                                         .^-.,_    |`,|-._) " << endl;
cout << "                                                        /     `-.,_| || " << endl;
cout << "                                                       /            `-.,,_ " << endl;
cout << "  ____________                                         `-.,_             }\\, " << endl;
cout << " /            \\                                         |   `-.,_       /   `-.,_ " << endl;
cout << "/______________\\                                        |  |`-._ `-.,__/_,..-''*     " << endl;
cout << "\\_____SHOP_____/                                        |  |   |  ,_  ,+  .=.  |  " << endl;
cout << " |  ________  |                                         |, |  ~|  |_|  |  | |  | " << endl;
cout << " | |,______,| |                                           `-.,_|    `  |  ===  | " << endl;
cout << " |____________|                                           ,/  /`-.,_   |      _|    " << endl;
cout << "     |	  |                                               |   |     `-.+.---'`    " << endl;
cout << "      \\,   \\,,,__                                         `\\   `-.._     " << endl;
cout << "       `-.,,__  `\\           _--######--_                   `-,_    `-. " << endl;
cout << "              \\  |       _ -#            #-_                    `.,   `. " << endl;
cout << "              |  |      #                   #                      `|  `| " << endl;
cout << "              |  \\____#  _____//__||___\\\\_____ #_                   |   | " << endl;
cout << "               \\         ..  // v || v  \\\\  ..    #_           __.`/   /` " << endl;
cout << "                \\       ... // vv || vv  \\\\ ...     #_     _,-'      .` " << endl;
cout << "               _# 	=====++=====++======\\\\=====   #__-`     ___./ " << endl;
cout << "              #       v   //  ..  ||  oo   \\\\  X             _-' " << endl;
cout << "            _#       v v //  ...  ||  ooo   \\\\  X         __` " << endl;
cout << "          _#     =======++========++=========++=======     #_ " << endl;
cout << "         #	  ::   //  X X X  ||   ===    \\\\  \\/         #  " << endl;
cout << "        # 	:: :: //  X X X X ||  ======   \\\\   \\/        # " << endl;
cout << "        #   =========++===========++============++=========    # " << endl;
cout << "       #    _\\_/_   //  \\/ \\/ \\/  ||  ;; ;; ;;   \\\\  O O O     # " << endl;
cout << "      #      / \\   // \\/ \\/ \\/ \\/ || ;; ;; ;; ;;  \\\\  O O O     # " << endl;
cout << "      #___________//______________||_______________\\\\_________ # " << endl;
cout << "       ####################################################### " << endl;

	cout << "perintah yang baru bisa dijalankan:" << endl;
	cout << "1.new <nama_player> #" << endl;
	cout << "2.exit #" << endl;
	cout << "3.plow #" << endl;
	cout << "4.teleport <nama_area:lahan,toko,rumah> #" << endl;
	cout << "5.eat" << endl;
	cout << "6.put" << endl;
	cout << "7.water" << endl;
	cout << "8.slash" << endl;
	cout << "9.sleep" << endl;
	cout << "10.harvest" << endl;
	cout << "11.right/left/up/down" << endl;
	cout << "12.right/left/up/down <jumlah_langkah>" << endl;
	cout << "13.wake_up <nomor_kurcaci>" << endl;
	cout << "14.sleep <nomor_kurcaci>" << endl;
	cout << "15.status" << endl;
	cout << "16.teleport-help" << endl;
	cout << "17.inventory" << endl;
	cout << "18.store" << endl;
	cout << "19.buy" << endl;
	cout << "20.sell" << endl;
	cout << "21.load <nama player>" << endl;
	cout << "22.save" << endl;
	cout << "23.help" << endl;
	cout << endl;
	cout << "masukkan perintah :" << endl;
        PlaySound(TEXT("angrybirds.wav"),NULL, SND_LOOP | SND_ASYNC);
	Parser P1;
	P1.initialize();
	P1.getInput();
	while(!P1.getHALT() && strcmp(P1.getString(),"exit #")!=0) {
		P1.initialize();
		P1.getInput();
	}
	return 0;
}
